﻿@using JustinAngel.MetroBlog.Common.Helpers
@model SidebarModel
@{
    Layout = null;
}
    <div class="sideBar">
        <div class="sideBarButtons" style="float: left">
            <a id="searchLink" target="_blank" href="http://www.bing.com/search?q=site%3A@(Html.WebsiteRootEscaped() )"
                onclick="javascript:return false;">
                <img src="@Url.Content("~/Content/Sidebar/Icons/Search.png")" alt="Search" />
            </a><a id="shareLink" target="_blank" href="@Model.TwitterLink"
                onclick="javascript:return false;">
                <img src="@Url.Content("~/Content/Sidebar/Icons/Share.png")" alt="Share on Twitter" />
            </a><a href="@Html.WebsiteRoot()">
                <img src="@Url.Content("~/Content/Sidebar/Icons/home.png")" alt="Go Home" />
            </a><a id="rssLink" target="_blank" href="@Html.WebsiteRoot()/Feed"
                onclick="javascript: return false;">
                <img src="@Url.Content("~/Content/Sidebar/Icons/RSS.png")" alt="RSS" />
            </a><a id="contactLink" target="_blank" href="http://JustinAngel.net/storage/businessCard.png"
                onclick="javascript: return false;">
                <img src="@Url.Content("~/Content/Sidebar/Icons/Contact.jpg")" alt="Business Card" />
            </a>
        </div>
        <div class="sidebarLiveDisplay">
            <div id="sidebarContact">
                <img src="http://JustinAngel.net/storage/businessCard.png" />
            </div>
            <div id="sidebarSearch">
                Search:
                <input type="text" id="sidebarSearchTextbox" />
                <ul id="searchResults">
                </ul>
            </div>
            <div id="sidebarShare">
                <a target="_blank" href="@Model.TwitterLink">
                    <img alt="Share on twitter" src="@Url.Content("~/Content/Sidebar/Icons/twitter.png")" />
                </a><a target="_blank" href="@Model.FacebookLink">
                    <img alt="Share on facebook" src="@Url.Content("~/Content/Sidebar/Icons/facebook.png")" />
                </a><a target="_blank" href="@Model.RedditLink">
                    <img alt="Share on reddit" src="@Url.Content("~/Content/Sidebar/Icons/reddit.png")" />
                </a>
            </div>
            <div id="sidebarRSS">
                <input type="text" readonly="readonly" value="@Html.WebsiteRoot()/Feed" />
            </div>
        </div>
    </div>

    <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
    try {
        var pageTracker = _gat._getTracker("UA-12257058-1");
        pageTracker._setDomainName("none");
        pageTracker._setAllowLinker(true);
        pageTracker._trackPageview();
    } catch (err) { }</script>